/**
 * Created by qsyan on 2016-12-1.
 */
import * as constants from '../constants'

export function login(data) {
    return {
        type: constants.USER_LOGGED_IN,
        payload: data
    }
}

export function logout() {
    return {
        type: constants.USER_LOGGED_OUT
    }
}
